<%--
  Created by IntelliJ IDEA.
  User: 23166
  Date: 2022/4/9
  Time: 15:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<link rel="stylesheet" href="css/querystudent.css">

<html>
<head>
    <title>查看学生列表</title>
</head>
<body>
    <h1>查看学生列表</h1>
    <table>
        <tr>
            <th>学生姓名</th>
            <th>学生年龄</th>
            <th>学生性别</th>
            <th>操 作</th>
        </tr>

        <c:forEach items="${stuList}" var="student">

        <tr>
            <td>${student.name}</td>
            <td>${student.age}</td>
            <td>${student.sex}</td>
            <td>
                <input type="button" onclick="location.href=
                '/removestudent?studentname=${student.name}'" value="删 除 学 生">
            </td>
        </tr>
        </c:forEach>
    </table>
    <button type="button" onclick="javascript:location.href='index.jsp'">回首页</button>
</body>
</html>
